Skip to content

Build releases against the FIPS 140-3 validated Go crypto module - #6262

Open
ilyakuz-db wants to merge 2 commits into
mainfrom
fips140-release-build
Open

Build releases against the FIPS 140-3 validated Go crypto module#6262
ilyakuz-db wants to merge 2 commits into
mainfrom
fips140-release-build

Conversation

@ilyakuz-db

@ilyakuz-db ilyakuz-db commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Changes

Build released binaries with GOFIPS140=v1.0.0. This links the FIPS 140-3 validated Go Cryptographic Module into the binary and defaults FIPS 140-3 mode on, so no runtime flag is needed.

Why

Regulated environments (FedRAMP, IL5) require cryptography to come from a validated module. This has to be set at build time: the runtime GODEBUG=fips140=on only toggles the mode on whatever module was already linked, so without the build variable, there is no validated module in the binary and no certificate to cite.

Pinned to a frozen version rather than an alias. v1.0.0 is the version covered by CMVP certificate #5247

This changes behavior for everyone, not just regulated users: the TLS client offers only FIPS-approved suites (6 instead of 13, dropping ChaCha20 and CBC)

CI coverage for the FIPS build is added separately in #6193

Tests

Ran the whole unit and acceptance suite against a FIPS build — no failures. Also confirmed all six release targets (linux/darwin/windows x amd64/arm64) cross-compile with the variable set; none of the platforms Go excludes from FIPS mode are in our matrix.

This PR was written by Claude Code.

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 3c7c16a

Run: 32016597156

Env 🟨​KNOWN 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
🟨​ aws linux 3 1 4 286 1149 6:12
🟨​ aws windows 3 1 4 288 1147 9:53
🟨​ azure linux 3 1 4 285 1149 7:20
🟨​ azure windows 3 1 4 287 1147 9:53
💚​ gcp linux 1 5 286 1149 6:00
💚​ gcp windows 1 5 288 1147 7:27
8 interesting tests: 4 SKIP, 3 KNOWN, 1 RECOVERED
Test Name aws linux aws windows azure linux azure windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/bundle/invariant/no_drift 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_endpoints/drift/recreated_same_name 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_indexes/recreate/embedding_dimension 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/ssh/connection 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🟨​ TestFetchRepositoryInfoAPI_FromRepo 🟨​K 🟨​K 🟨​K 🟨​K 🙈​S 🙈​S
🟨​ TestFetchRepositoryInfoAPI_FromRepo/root 🟨​K 🟨​K 🟨​K 🟨​K
🟨​ TestFetchRepositoryInfoAPI_FromRepo/subdir 🟨​K 🟨​K 🟨​K 🟨​K
Top 6 slowest tests (at least 2 minutes):
duration env testname
7:53 aws windows TestAccept
7:37 azure windows TestAccept
7:20 gcp windows TestAccept
3:46 azure linux TestAccept
3:40 aws linux TestAccept
3:38 gcp linux TestAccept

@ilyakuz-db
ilyakuz-db force-pushed the fips140-release-build branch 4 times, most recently from 2c52d0c to 85233e3 Compare August 17, 2026 09:31
@ilyakuz-db
ilyakuz-db requested review from denik and pietern August 17, 2026 09:36
varundeepsaini pushed a commit to varundeepsaini/cli that referenced this pull request Aug 17, 2026
…icks#6193)

## Changes

Sets `GOFIPS140=v1.0.0` in `Taskfile.yml`, so every `task` invocation
builds the CLI against the FIPS 140-3 validated Go Cryptographic Module.
Adds a test that reads the built binary's build info to confirm it
really was built with it.

## Why

Releases are moving to FIPS builds (databricks#6262). Go picks its cryptographic
module at build time, so testing without it exercises a configuration we
no longer ship.

In the Taskfile rather than a workflow env because every consumer goes
through `task` — local `./task test`, CI's `task test`, and the
integration suite, which runs `task integration` from eng-dev-ecosystem.
One line covers all three, with no cross-repo change. Bare `go test`
outside `task` is not covered, so the check fails there rather than
silently passing.

Worth flagging: this makes eng-dev-ecosystem integration runs FIPS
without a change in that repo.

## Tests

Full unit + acceptance suite under FIPS, locally and in CI (all six
cells, macOS and Windows included) — no failures. Integration against
real workspaces under FIPS: ~11,000 tests across six cells (three clouds
x linux/windows), and the FIPS check passed in every cell. The four
unrelated failures were a leftover-state 409 on AWS and three cluster
timing flakes; baseline nightlies show the same rate without FIPS.

Perf: CLI startup 12ms -> 13ms, RSA-4096 key generation 653ms -> 1.35s.
The new build tag invalidates the Go build cache once, so the first
build after this merges is a full rebuild.
@@ -0,0 +1 @@
Released binaries are now built against the FIPS 140-3 validated Go Cryptographic Module, with FIPS 140-3 mode enabled by default. TLS connections negotiate only FIPS-approved cipher suites, which drops ChaCha20 and CBC from what the client offers. FIPS mode can be disabled at startup with `GODEBUG=fips140=off`, which restores the previous TLS behaviour ([#6262](https://github.com/databricks/cli/pull/6262)).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really notable? We could move it to the CLI section.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, moved to the cli/

@ilyakuz-db
ilyakuz-db force-pushed the fips140-release-build branch from 85233e3 to 3c7c16a Compare August 17, 2026 09:41
@pietern

pietern commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

@ilyakuz-db I triggered a rerun (and investigation) of the most recent failure. Looks like a flake.

@ilyakuz-db

Copy link
Copy Markdown
Contributor Author

@ilyakuz-db I triggered a rerun (and investigation) of the most recent failure. Looks like a flake.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants